<template>
  <div>
    <div>
      <Table :arr="list">
        <template v-slot:title="scope">
          <h1>{{ scope.title }}</h1>
        </template>
        <template v-slot:Id="scope">
          <h4>{{ scope.Id }}</h4>
        </template>

        <template v-slot:Name="scope">
          <h4>{{ scope.ame }}</h4>
        </template>

        <template v-slot:Price="scope">
          <h2>{{ scope.Price }}</h2>
        </template>
        <template v-slot:Time="scope">
          <h5>{{ scope.Time }}</h5>
        </template>
        <template v-slot:btn="scope">
          <h1>{{ scope.del }}</h1>
        </template>
      </Table>
    </div>
  </div>
</template>

<script>
import Table from './components/Table'
export default {
  components: {
    Table
  },
  data () {
    return {
      list: [
        { id: 100, name: '外套', price: 199, time: new Date('2010-08-12') },
        { id: 101, name: '裤子', price: 34, time: new Date('2013-09-01') },
        { id: 102, name: '鞋', price: 25.4, time: new Date('2018-11-22') },
        { id: 103, name: '头发', price: 19900, time: new Date('2020-12-12') }
      ]
    }
  },

  created () {},

  methods: {}
}
</script>

<style scoped lang="less"></style>
